package com.tanguy.driver.bean.socket;

/**
 * Created by dab on 2017/11/27 0027 15:45
 * 新的订单
 */

public class NewOrder {
    /**
     * deplon : 104.072329
     * boulat : 30.6634311
     * bourn : 世界贸易中心
     * boulon : 104.07235
     * bybustime : 1511769060000
     * departure : 成都天府广场
     * msg : 您有新的订单
     * deplat : 30.66342
     * orderId : 31
     */

    private double deplon;
    private double boulat;
    private String bourn;
    private double boulon;
    private long bybustime;
    private String departure;
    private String msg;
    private double deplat;
    private int orderId;
    private int ordertype;//订单类型 1=接机 2=送机 3=接站 4=送站
    private double km;
    private double totalkm;

    public double getDeplon() {
        return deplon;
    }

    public void setDeplon(double deplon) {
        this.deplon = deplon;
    }

    public double getBoulat() {
        return boulat;
    }

    public void setBoulat(double boulat) {
        this.boulat = boulat;
    }

    public String getBourn() {
        return bourn;
    }

    public void setBourn(String bourn) {
        this.bourn = bourn;
    }

    public double getBoulon() {
        return boulon;
    }

    public void setBoulon(double boulon) {
        this.boulon = boulon;
    }

    public long getBybustime() {
        return bybustime;
    }

    public void setBybustime(long bybustime) {
        this.bybustime = bybustime;
    }

    public String getDeparture() {
        return departure;
    }

    public void setDeparture(String departure) {
        this.departure = departure;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public double getDeplat() {
        return deplat;
    }

    public void setDeplat(double deplat) {
        this.deplat = deplat;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getOrdertype() {
        return ordertype;
    }

    public void setOrdertype(int ordertype) {
        this.ordertype = ordertype;
    }

    public double getKm() {
        return km;
    }

    public void setKm(double km) {
        this.km = km;
    }

    public double getTotalkm() {
        return totalkm;
    }

    public void setTotalkm(double totalkm) {
        this.totalkm = totalkm;
    }

    @Override
    public String toString() {
        return "NewOrder{" +
                "deplon=" + deplon +
                ", boulat=" + boulat +
                ", bourn='" + bourn + '\'' +
                ", boulon=" + boulon +
                ", bybustime=" + bybustime +
                ", departure='" + departure + '\'' +
                ", msg='" + msg + '\'' +
                ", deplat=" + deplat +
                ", orderId=" + orderId +
                ", ordertype=" + ordertype +
                ", km=" + km +
                ", totalkm=" + totalkm +
                '}';
    }
//1=接机 2=送机 3=接站 4=送站
    public String getTypeString() {
        switch (ordertype) {
            case 1:return "接机";
            case 2:return "送机";
            case 3:return "接站";
            default: return "送站";
        }
    }
}
